package com.kaifamiao.www.demo.do0815;

import java.util.LinkedList;

public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");
        list.add("e");
        list.add("f");
        System.out.println(list);
        list.addFirst("q");
        System.out.println(list);
        System.out.println(list.removeLast());
        System.out.println(list.getFirst());
    }
}
